import os
PRO_PATH = os.path.dirname(os.path.abspath(__file__))


class RunConfig:
    """
    rms运行测试配置
    """
    # 运行测试用例的目录或文件
    # cases_path = os.path.join(PRO_PATH, "test_dir", "test_001.py")
    cases_path = os.path.join(PRO_PATH, "test_dir")

    # 配置浏览器驱动类型(chromium, firefox, webkit)。
    browser = "chromium"

    # 运行模式（headless, headful）
    mode = "headful"

    # 配置运行的 URL
    # url = "https://www.baidu.com"
    url = "https://keycloak.zimocloud.com/auth/realms/zimocloud/protocol/openid-connect/auth?client_id=resource-manager-system-fe&redirect_uri=http%3A%2F%2Ft-rms.zimocloud.com%2F%23%2F&state=474692fb-864a-480f-aa3c-c369d4221a6e&response_mode=fragment&response_type=code&scope=openid&nonce=879f495b-4ff2-4743-8371-f9e8c8ea8d88"

    # 失败重跑次数
    rerun = "0"

    # 当达到最大失败数，停止执行
    max_fail = "5"

    # 报告路径（不需要修改）
    NEW_REPORT = None
